/**
 * 整理数据，准备查库
 */
const CURD  = require('./CURD');
class Entry{
    constructor(msg) {
        this.msg = msg;
    }

    // 用户查询
    find() {
        const uinfo = CURD.find({
            "table": "user",
            "field": {
                "uname": this.msg.uname,
                "pwd": this.msg.pwd,
            }
        });
        return uinfo;
    }
}

module.exports = Entry;